package com.whw.fy.mapper;

import com.whw.fy.entity.CourseSummary;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface CourseSummaryMapper {
    int deleteByPrimaryKey(Integer courseSummaryId);

    int insert(CourseSummary record);

    int insertSelective(CourseSummary record);

    CourseSummary selectByPrimaryKey(Integer courseSummaryId);

    int updateByPrimaryKeySelective(CourseSummary record);

    int updateByPrimaryKey(CourseSummary record);

    int updateBatchSelective(List<CourseSummary> list);

    int batchInsert(@Param("list") List<CourseSummary> list);

    List<CourseSummary> selectAll();

    List<CourseSummary> selectAllByCourseSummaryStudentId(@Param("courseSummaryStudentId") Integer courseSummaryStudentId);

    List<CourseSummary> selectAllByCourseSummaryClazzId(@Param("courseSummaryClazzId") Integer courseSummaryClazzId);


    int CountByCourseSummaryPostUserIdNowInMonth(@Param("courseSummaryPostUserId") Integer courseSummaryPostUserId);

    List<CourseSummary> selectAllByCourseSummaryMedicalDirectorId(@Param("courseSummaryMedicalDirectorId") Integer courseSummaryMedicalDirectorId);

    List<CourseSummary> selectByCourseSummaryTeachingSupervisorId(@Param("courseSummaryTeachingSupervisorId") Integer courseSummaryTeachingSupervisorId);
}